import mongoose from "mongoose";
const newsRuler = new mongoose.Schema({
  title: { type: String, unique: true },
  time: { type: String },
  origin: { type: String },
  contenthtml: { type: String },
  cate: { type: mongoose.Types.ObjectId, index: true },
  createTime: {
    type: Date,
    default: Date.now(),
  },
  cover: {
    type: String,
  },
  hotRate: {
    type: String,
  },
});
const newsInfo = mongoose.model("type", newsRuler);
export { newsInfo };
